package com.xfcy.blog.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 上一篇下一篇文章实体类
 * @author 晓风残月Lx
 * @date 2023/4/12 18:25
 */
@ApiModel("上一篇下一篇文章实体类")
@Data
public class ArticleVO {
    @ApiModelProperty(value = "主键id")
    private Long id;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "封面地址")
    private String avatar;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime createTime;

}
